package mianxiangduixiang.Week8.Exam5;

import mianxiangduixiang.Week8.Exam2.Circle;
import mianxiangduixiang.Week8.Exam2.Rectangle;
import mianxiangduixiang.Week8.Exam2.Shape;

/**
 * @Author JetZhang
 * @Date 2021/11/2
 */
public class TestV1 {
    public static void main(String[] args) {
        Shape shape = new Circle(5.00);
        Shape shape1 = new Rectangle(5, 5);
        System.out.println(shape.toString());
        System.out.println(shape1.toString());
        System.out.println("圆面积" + new Rectangle(5, 5).getArea());
        System.out.println("长方形面积" + new Circle(5.00).getArea());
    }
}
